﻿
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	BillSequencePageData obj = (BillSequencePageData)context.getValue("BillSequencePageData");
%>

<!--********************* Part3:JavaScript Code ***************-->
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("仓库编码","WarehouseCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("仓库名称","WarehouseName",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("订单类型","BillType",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("订单日期","BillDate",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("当前序列值","CurrentValue",true,false,0,true,CHECK_ITEM_TYPE_INT);

g_check_items[g_i++] = new CheckItem("状态","Status",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("创建用户ID","CreateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("创建用户","CreateUser",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("单证创建时间","CreateTime",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人ID","LastUpdateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人","LastUpdateUser",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("最后修改时间","LastUpdateTime",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("是否同步","IsSync",true,true,1,false,0);


function doSaveAndNew()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveAndNewBillSequence");
	frm.submit();
}
function doSave()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveBillSequence");
	frm.submit();
}
function doCancel()
{
	SetAction("backListBillSequence");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("单据序列信息表维护")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
	int key_tab = 1 ;
%>


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>仓库编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="WarehouseCode" size=20  value="<%=obj.viewWarehouseCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>仓库名称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>订单类型：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="BillType" size=20  value="<%=obj.viewBillType(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>订单日期：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="BillDate" size=20  value="<%=obj.viewBillDate(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>当前序列值：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CurrentValue" size=20  value="<%=obj.viewCurrentValue(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>状态：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建用户ID：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建用户：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>单证创建时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人ID：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否同步：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="IsSync" size=20  value="<%=obj.viewIsSync(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
   		<%=uiCommandTD%>>                     
			<input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
			<input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
			<input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
		</td>
	</tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :chengbiao.he
	FileName  :/system/base/BillSequenceEdit.jsp
-->
